package net.caidingke.shepherd.utils.lib.event;

import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;

/**
 * @author bowen
 */
@Slf4j
public final class EventListener {

    @Subscribe
    public void on(Event event) {
        log.info("id is {}. type is {}", event.getId(), event.getEventType());
    }

    @Subscribe
    public void onDeadEvent(DeadEvent event) {
        log.info(event.toString());
    }

}
